# 1、给定一个列表：
# 1.1、取出第六个的值
"""
list1 = [465,8231,8123485,215,612318,12534,561231561,5631,584,2318564,584,5634,561326,4156,1]
six = list1[5]
print(six)
"""
# 1.2、判断，如果列表中的值是561231561，则输出：今天你猜对了哦~~~~
"""
list1 = [465,8231,8123485,215,612318,12534,561231561,5631,584,2318564,584,5634,561326,4156,1]
if 561231561 in list1:
    print("今天你猜对了哦~~~~")
"""
# 1.3、打印这个列表里面所有的偶数
"""
list1 = [465,8231,8123485,215,612318,12534,561231561,5631,584,2318564,584,5634,561326,4156,1]
for i in list1:
    if i % 2 == 0:
        print(i)
"""
# 2、定义集合，使用for遍历访问元素
"""
shuzi = {1, 2, 3, 4, 5}
for jihe in set:
    print(jihe)
"""
# 3、定义字符串，使用for遍历访问元素
"""
name = ("张墉","佳琦","wo")
for zifu in name:
    print(zifu)
"""
# 4、定义字典，使用for遍历访问元素

# 5、定义列表，使用for遍历访问元素
"""
o = [0,1,2,3,4]
for liebiao in o:
    print(liebiao)
"""
#6、遍历：{465,84564,5641,21564,1891563,481564,651,"王长帅","王李","李四","王三"}
"""
b = {465,84564,5641,21564,1891563,481564,651,"王长帅","王李","李四","王三"}
for i in b:
    print(i)
    if i == "王长帅":
        break
"""

